package com.im.project.entity.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 会话用户对象
 *
 * @author yunZhouJiaDi
 */
@Data
@Accessors(chain = true)
public class ChatUserVo {

    @ApiModelProperty("用户id")
    private String userId;

    @ApiModelProperty("联系人id")
    private String contactId;

    @ApiModelProperty("会话id")
    private String chatId;

    @ApiModelProperty("联系人名称")
    private String contactName;

    @ApiModelProperty("联系人头像")
    private String contactIcon;

    @ApiModelProperty("联系人类型（0:好友 1:群组）")
    private Integer contactType;

    @ApiModelProperty("最后接受的消息")
    private String lastMessage;

    @ApiModelProperty("最后接受消息时间")
    private Long lastReceiveTime;

    @ApiModelProperty("最后发送人名称（主要处理群聊发送人）")
    private String lastSendName;

    @ApiModelProperty("用户人数")
    private Integer memberCount;

}
